Oracle Mobile Application Framework Developer Guide by Luc Bors

Oracle Mobile Application Framework Developer Guide by Luc Bors

Author:Luc Bors
Language: eng
Format: epub
Publisher: McGraw-Hill Education
Published: 2015-09-14T16:00:00+00:00


FIGURE 9-12. Debugging JavaScript on iOS using the Web Inspector debugger

JavaScript Debugging on Android

Google, like Apple, has similar debugging capabilities and, as with Apple, where you need to use Safari to connect to the iOS Simulator, Android developers need to use Chrome. Using “chrome://inspect” (Figure 9-13), developers can gain access to the running emulators or connected devices.

FIGURE 9-13. Using Chrome://inspect to get emulated and connected devices

It even simplifies setting up port forwarding if you want to debug your application by providing direct access to the Android Debug Bridge (adb) forward tcp option, which can be changed in the browser. The full documentation can be found at the Google developers’ web site, https://developers.google.com/chrome-developer-tools/.

With this set up, you can debug the JavaScript of a running MAF application from within the Google Chrome browser. Simply deploy and launch your application on the device or emulator, start Google Chrome, and navigate to chrome://inspect. This will bring up the DevTools main page, from where you can select devices and check “Discover USB devices” for actual device debugging.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.